<?php

use  Biz\service\Album\AlbumListService;

class RelaAlbumAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $album_id = $this->getRequest()->getPost('album_id', 0);
        if(empty($album_id)){
            throw new Exception('album_id参数缺失');
        }
        $relaAlbumInfo =   AlbumListService::getRelaAlbumByAlbumId($album_id);
        $this->setSuccess($relaAlbumInfo);
    }
}